﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:SampleData="clr-namespace:Expression.Blend.SampleData.DataForDesign"
	xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
	xmlns:Behaviors="clr-namespace:Behaviors;assembly=Behaviors"
	x:Class="System8ToyMC.NamedValue"
	d:DesignWidth="289" d:DesignHeight="56">

	<UserControl.Resources>
		<SampleData:DataForDesign x:Key="DataForDesign" d:IsDataSource="True"/>
	</UserControl.Resources>

	<StackPanel x:Name="LayoutRoot" Orientation="Horizontal" d:DataContext="{Binding Source={StaticResource DataForDesign}}">
		<TextBlock Text="{Binding ValueName, Mode=OneWay}" TextWrapping="Wrap" x:Name="TBValueName" />
		<TextBox Width="100" Text="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=Default}" x:Name="TBValue" GotFocus="TBValue_GotFocus" />
		<TextBlock x:Name="TBROValue" Width="100" Visibility="Collapsed" Text="{Binding Value, Mode=OneWay}" TextWrapping="Wrap"/>
	</StackPanel>
</UserControl>